package com.pig4cloud.pig.common.data.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

public interface BaseMaper<T> extends BaseMapper<T> {

    /**
     * 批量插入(单表操作)
     * @param entityList
     * @return
     */
    int  insertBatch(@Param(Constants.COLLECTION) Collection<T> entityList);

}
